package com.github.wxiaoqi.security.example.biz;

import com.github.wxiaoqi.security.common.biz.BaseBiz;
import com.github.wxiaoqi.security.example.entity.Demo;
import com.github.wxiaoqi.security.example.mapper.DemoMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ${DESCRIPTION}
 *
 * @author wanghaobin
 * @create 2017-07-01 14:36
 */
@Service
public class DemoBiz extends BaseBiz<DemoMapper,Demo> {



    @Override
    public List<Demo> selectListAll() {
        return mapper.selectAll();
    }


    public Demo selectNameById (@Param("Id") int Id){
        return mapper.selectDemoNameById(Id);
    }
}
